package com.fhzn.boss.web.request;

import lombok.Data;
import org.apache.poi.ss.formula.functions.T;

import java.util.Objects;

/**
 * @author 老顾
 * @apiNote
 * @since 2024/1/2
 */
@Data
public class AuthQueryRequest extends BaseRequest<T> {

    private String targetUser;

    @Override
    public T genServiceParam() {
        throw new UnsupportedOperationException();
    }

    @Override
    public String getHandler() {
        if (Objects.isNull(targetUser)) {
            return super.getHandler();
        }
        return targetUser;
    }
}
